package com.ipan.builder.ext.entity.annotation;

import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import static com.ipan.builder.ext.entity.annotation.DefIdStrategy.INSERT;

import java.lang.annotation.Retention;
import java.lang.annotation.Target;

/**
 * 主键
 * <pre>
 * 实体的主键标识。
 * </pre>
 * @author iPan
 * @version 2015-1-24
 */
@Target({FIELD})
@Retention(RUNTIME)
public @interface DefId {

	DefIdStrategy strategy() default INSERT;
}
